/*
 * @Author: your name
 * @Date: 2022-02-17 17:26:02
 * @LastEditTime: 2022-02-17 17:32:21
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \web-vue\src\globalFun.js
 */
import Vue from 'vue'

Vue.mixin({
  methods:{
    hasAuth(perm){
      var authority = this.$store.state.menus.permList

      return authority.indexOf(perm)>-1

    }
  }
})